package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_xiuxian_tripod_op", desc = "凡人修仙传-虚天鼎抽取日志", autoSave = true, uploadCk = true)
public class LogXiuXianTripodOp extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "虚空鼎等级")
    private int lv;

    @FieldTypeAnnotation(desc = "抽取前机缘点")
    private int beforeLuckPoint;

    @FieldTypeAnnotation(desc = "消耗机缘点")
    private int consumeLuckPoint;

    @FieldTypeAnnotation(desc = "抽取后机缘点")
    private int afterLuckPoint;

    @FieldTypeAnnotation(desc = "法宝id")
    private int equipmentId;

    @FieldTypeAnnotation(desc = "法宝等级")
    private int baseLv;

    @FieldTypeAnnotation(desc = "是否回收")
    private boolean isRecycle;

    @FieldTypeAnnotation(desc = "回收经验")
    private int recycleExp;

    public LogXiuXianTripodOp(long userId, int activityId, int lv, int beforeLuckPoint, int consumeLuckPoint, int afterLuckPoint, int equipmentId, int baseLv, boolean isRecycle, int recycleExp) {
        this.userId = userId;
        this.activityId = activityId;
        this.lv = lv;
        this.consumeLuckPoint = consumeLuckPoint;
        this.equipmentId = equipmentId;
        this.baseLv = baseLv;
        this.isRecycle = isRecycle;
        this.recycleExp = recycleExp;
        this.beforeLuckPoint = beforeLuckPoint;
        this.afterLuckPoint = afterLuckPoint;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
